package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.domain.Rating;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.domain.model.RatingDTO;

import java.util.List;

/**
* @author Administrator
* @description 针对表【rating】的数据库操作Service
* @createDate 2023-03-20 09:46:20
*/
public interface RatingService extends IService<Rating> {

    IPage<RatingDTO> getList(String userId, Page<Rating> page);
    Rating getByMovieId(String userId,String movieId);
    boolean save(Rating rating,String userId);
    boolean update(String userId,Rating rating);
    boolean delete(String id);

    List<Rating> getAll();
}
